package com.punai.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.customer.domain.CusLinkFbGx;
import com.punai.customer.mapper.CusLinkFbGxMapper;
import com.punai.customer.service.ICusLinkFbGxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工序分包费用项 关联工序Service业务层处理
 *
 * @author zxw
 * @date 2022-12-09
 */
@Service
public class CusLinkFbGxServiceImpl extends ServiceImpl<CusLinkFbGxMapper, CusLinkFbGx> implements ICusLinkFbGxService
{
    @Autowired
    private CusLinkFbGxMapper dmcLinkFbGxMapper;

    /**
     * 查询工序分包费用项 关联工序
     *
     * @param id 工序分包费用项 关联工序主键
     * @return 工序分包费用项 关联工序
     */
    @Override
    public CusLinkFbGx selectDmcLinkFbGxById(String id)
    {
        return dmcLinkFbGxMapper.selectDmcLinkFbGxById(id);
    }

    /**
     * 查询工序分包费用项 关联工序列表
     *
     * @param dmcLinkFbGx 工序分包费用项 关联工序
     * @return 工序分包费用项 关联工序
     */
    @Override
    public List<CusLinkFbGx> selectDmcLinkFbGxList(CusLinkFbGx dmcLinkFbGx)
    {
        return dmcLinkFbGxMapper.selectDmcLinkFbGxList(dmcLinkFbGx);
    }

    /**
     * 新增工序分包费用项 关联工序
     *
     * @param dmcLinkFbGx 工序分包费用项 关联工序
     * @return 结果
     */
    @Override
    public int insertDmcLinkFbGx(CusLinkFbGx dmcLinkFbGx)
    {
            return dmcLinkFbGxMapper.insert(dmcLinkFbGx);
    }

    /**
     * 修改工序分包费用项 关联工序
     *
     * @param dmcLinkFbGx 工序分包费用项 关联工序
     * @return 结果
     */
    @Override
    public int updateDmcLinkFbGx(CusLinkFbGx dmcLinkFbGx)
    {
        return dmcLinkFbGxMapper.updateById(dmcLinkFbGx);
    }

    /**
     * 批量删除工序分包费用项 关联工序
     *
     * @param ids 需要删除的工序分包费用项 关联工序主键
     * @return 结果
     */
    @Override
    public int deleteDmcLinkFbGxByIds(String[] ids)
    {
        return dmcLinkFbGxMapper.deleteDmcLinkFbGxByIds(ids);
    }

    /**
     * 删除工序分包费用项 关联工序信息
     *
     * @param id 工序分包费用项 关联工序主键
     * @return 结果
     */
    @Override
    public int deleteDmcLinkFbGxById(String id)
    {
        return dmcLinkFbGxMapper.deleteDmcLinkFbGxById(id);
    }
}
